package com.example.app1;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class RecvActivity extends AppCompatActivity {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recv);
        TextView tv = findViewById(R.id.tv1);
        Bundle bundle = getIntent().getExtras();
        String sendtime = bundle.getString("sendtime");
        String content = bundle.getString("content");
        tv.setText("时间："+ sendtime+"\n接收到的内容："+content);

    }
}
